// 定义用户信息类型
export interface UserInfo {
  id: string;
  username: string;
  realname: string;
  password: string;
  salt: string;
  avatar: string;
  birthday: string; // 假设日期时间以字符串形式存储
  sex: number;
  email: string;
  phone: string;
  orgCode: string;
  status: number;
  delFlag: number;
  thirdId: string;
  thirdType: string;
  activitiSync: number;
  workNo: string;
  telephone: string;
  createBy: string;
  createTime: string; // 假设日期时间以字符串形式存储
  updateBy: string;
  updateTime: string; // 假设日期时间以字符串形式存储
  userIdentity: number;
  departIds: string;
  clientId: string;
  loginTenantId: number;
  bpmStatus: string;
  relTenantIds: string;
  homePath: string;
}

// 定义角色列表项类型
export interface RoleListItem {
  id: string;
  roleName: string;
  roleCode: string;
  description: string;
  createBy: string;
  createTime: string; // 假设日期时间以字符串形式存储
  updateBy: string;
  updateTime: string; // 假设日期时间以字符串形式存储
  tenantId: number;
}

// 定义整个数据结构类型
export interface UserContext {
  userInfo: UserInfo;
  sysAllDictItems: Record<string, unknown>; // 或者指定具体字典项类型，这里假设未知
  roleList: RoleListItem[];
  permissionCodeList: string[];
}
